<%-- 
    Document   : modificaDistrito
    Created on : 6/07/2009, 03:54:01 PM
    Author     : ADMINISTRADOR
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>

<script language="javascript" src="../js/funciones.js"></script>
<link href="/colegiatura/Estilos/estilosEsymons.css" rel="stylesheet" type="text/css" />

<f:view>
<h:form>
<table width="100%" border="0">
  <tr>
    <td align="left" class="texto3">
        <h:outputLabel value="Mantenimiento de Distrito" styleClass="texto3"/> </td>
  </tr>
  <tr>
   <td>
  <fieldset><legend>Actualizar Distrito</legend>
      <table width="600" border="0">     
   <tr>
    <td>&nbsp;</td>
    <td width="109" align="left"><h:outputLabel value="Departamento :" styleClass="texto20" /> </td>
    <td colspan="3" align="left">
        <h:selectOneMenu value="#{provinciaController.dpto}"  styleClass="fondo012">
        <f:selectItems value="#{departamentoController.selectListaItemDpto}" />
        <a4j:support ajaxSingle="true" event="onchange" reRender="provincia" />
    </h:selectOneMenu></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td width="109" align="left"><h:outputLabel value="Provincia :" styleClass="texto20" /> </td>
    <td colspan="3" align="left">
    <h:selectOneMenu id="provincia" value="#{distritoController.distrito.proCodigo}" styleClass="fondo012">
        <f:selectItems value="#{provinciaController.selectListaItemProvincia}" />
    </h:selectOneMenu></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td width="115" align="left"><h:outputLabel value="Distrito :" styleClass="texto20" /> </td>
    <td colspan="3" align="left"><h:inputText value="#{distritoController.distrito.disNombre}" size="45" styleClass="fondo012" /></td>
    <td></td>
    <td>&nbsp;</td>
  </tr>
  <tr><td colspan="7" height="15" ></td></tr>
  <tr>
    <td>&nbsp;</td>
    <td width="115" align="left"></td>
    <td colspan="2" align="right">
	  <h:commandButton action="#{distritoController.editar}" value="Guardar" styleClass="enlace9" /></td>
    <td colspan="3" align="center">
      <h:commandButton action="ir_a_listar" value="Cancelar" styleClass="enlace9" /></td>
    </tr>
    </table>
  </fieldset>
   </td>
  </tr>
</table>
</h:form>
</f:view>

